package com.eirikb.shared.events;

import com.eirikb.client.Client;

/**
 *
 * @author eirikb
 */
public class KickEvent extends Event {

    private String by;
    private String who;
    private String msg;

    public KickEvent(String by, String who, String msg) {
        this.by = by;
        this.who = who;
        this.msg = msg;
    }

    public void execute(Client client) {
        client.getChat().removeNick(who);
        client.getChat().addChat("* " + who + " ble kicka av " + by + " (" + msg + ")");
    }
}
